package com.ho1ho.springboot.framework.core.exceptions.base;

public class BaseException extends Exception {

	private static final long serialVersionUID = -1845541798424098346L;

	protected int code;

	protected String message;

	public BaseException() {
		super();
	}

	public BaseException(Throwable e) {
		super(e);
	}

	public BaseException(int code) {
		super();
		this.code = code;
	}

	public BaseException(String message) {
		super(message);
		this.message = message;
	}

	public BaseException(int code, String message) {
		this(message);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
}
